using UnityEngine;
using System.Collections;

public class PlayerData{
	
	GameObject mainRoleInstance;
	int sceneId;
    int sceneType;
	//暂用//
	int nextSceneId;
	
	static PlayerData instance;
	public static PlayerData Instance(){
		if(instance == null){
			instance = new PlayerData();
		}
		return instance;
	}
	
	PlayerData(){
		//GetplayerData
	}
	
	public ByteArrayEx initDataArray;
	
	public GameObject MainRoleInstance{
		get{return mainRoleInstance;}
		set{
			mainRoleInstance = value;	
		}
	}
	
	public int SceneId{
		get{return sceneId;}
		set{
			sceneId = value;
		}
	}

    public int SceneType
    {
        get { return sceneType; }
        set
        {
            sceneType = value;
        }
    }
	
	public int NextScene{
		get{
			return nextSceneId;
		}set{
			nextSceneId = value;
		}
	}
	
	//临时的
	public int exp;
	public int maxExp;
	
}
